<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
   pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="support.*,java.util.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="layout.css" />
</head>
<body>
   <%
      student applicant = (student) session.getAttribute("applicant");
   %>

   <h1>Verification</h1>
   <hr>

<p><b>Please verify the following information is correct:</b></p>

   <p>
      Name:
      <%=applicant.name.toString()%><br /> Country of Citizenship:
      <%=applicant.getCountryVector().get(applicant.getCitizenship())%>
      <br /> Country of Residence:
      <%=applicant.getCountryVector().get(applicant.getResidence())%>
      <br />
      <br /><%=applicant.addy.toString()%>
      <br />
      <br /> Degrees: <br />
   </p>
   <table border=1>
      <tr>
         <th>ID</th>
         <th>Location</th>
         <th>University</th>
         <th>Discipline</th>
         <th>Month</th>
         <th>Year</th>
         <th>GPA</th>
         <th>Title</th>
      </tr>

      <%
         for (int i = 0; i < applicant.degreeMap.size(); i++) {
      %>
      <tr>
         <td><%=i%></td>
         <td><%=applicant.degreeMap.get(i).getState()%></td>
         <td><%=applicant.degreeMap.get(i).getDegreeUniversity()%></td>
         <td><%=applicant.getdegDiscipline(applicant.degreeMap.get(i).getDiscipline())%></td>
         <td><%=applicant.getMonthVector().get(
               applicant.degreeMap.get(i).getdegMonth())%></td>
         <td><%=applicant.degreeMap.get(i).getdegYear()%></td>
         <td><%=applicant.degreeMap.get(i).getdegGPA()%></td>
         <td><%=applicant.degreeMap.get(i).getdegType()%></td>
      </tr>
      <%
         }
      %>
   </table>
   <p>
      <br /> Specialization:
      <%=applicant.getSpecialization()%><br />
   </p>

   <form method="post">
      <input type="submit" value="Submit Application" /><br />
      <input type="submit" value="Cancel" />
   </form>
</body>
</html>